<template>
	<view class="content">
		<view class="panel-header solids-bottom padding-bottom-xs">
			<text class="panel-title text-xl text-bold">自我评价</text>
		</view>
		<view class="panel-content">
			<view class="panel-item text-lg padding-xs solid-bottom">
				<view>
					<view class="word-warp">{{memo.length == 0 ? "(空)" : memo}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				edit: false,
				memo: ''
			}
		},
		created() { },
		methods: { },
		props: ['external_data'],
		watch: {
			external_data: {
				handler(val, oldVal) {
					this.memo = val;
				},
				deep: true
			}
		}
	}
</script>

<style>
	.panel {
		/* width: 100%; */
		margin: 10px;
		padding: 10px;
		height: auto;
	}
	
	.panel-header {
		display: flex;
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
	}
	
	.word-warp {
		word-wrap: break-word;
		word-break: break-all;
		overflow: hidden;
	}
	
	.border-bottom {
		border-bottom: #eeeeee solid 1px;
	}
</style>
